* informal.do	JEP	01/27/15
* Build regression table
* Informal sector, wages

*************************** Change log ********************************** 

/*
	
*/	

clear 
version 13.1

* Project info
cap project, doinfo
if _rc==198 {
	if c(os)=="Unix" loc master "/home/jperez/AA_Minimum_Wage" 
	else if c(username)=="J16339" | c(username)=="A15858" loc master "B:\Col_Minimum_Wage" 
	else loc master "C:/Users/jorpp/Dropbox (Brown)/Col_Minimum_Wage"
}
else {
	local master "`r(pdir)'"
	local doname "`r(dofile)'" 
	* Project calls
	project, relies_on("`master'/Code/Est/rifregtable2.do")
}

do "`master'/Code/Est/rifregtable2_PIB.do"


* Bite - mensual - by industry

* rifregtable2, nrif(10) time(1999q1) panels(emp_bp emp_bq sst_emp_bp sst_emp_bq emp_bp_ixc emp_bq_ixc) pctiles(30 35 40 45 50 55 60 65 70) master(`master') outdir(`master'/Doc/third_year/tab/informal) dom(_edom_indcc) new(_new_indcc) mw(bite) per(mensual) wrap makepdf
rifregtable2, nrif(10) time(1999q1) panels(emp_bp sst_emp_bp ie_emp_bp iect_emp_bp) pctiles(40 45 50 55 60 65 70) master("`master'") outdir("`master'/Doc/tosubmit2/tab/informal_ebite_PIB") dom(_edom_indcc) new(_new_ebite_indcc_pib) mw(ebite) per(mensual)

